﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Drawing.Drawing2D;

namespace Crayons
{
    public partial class mainForm : Form
    {
        private Components.CanvasPanel flex;
        public static bool isEnd = false;

        public mainForm()
        {
            InitializeComponent();

            flex = new Components.CanvasPanel();
            flex.Location = new Point(0, 0);
            flex.Size = new Size(canvasModule.Size.Width, canvasModule.Size.Height);
            flex.BorderStyle = BorderStyle.FixedSingle;
            canvasModule.Controls.Add(flex);
            this.FormClosed += mainForm_FormClosed;
        }

        void mainForm_FormClosed(object sender, FormClosedEventArgs e)
        {
            mainForm.isEnd = true;            
        }

        private void imageViewer_Paint(object sender, PaintEventArgs e)
        {
        }

        private void mainForm_Shown(object sender, EventArgs e)
        {
        }

        private void statusStrip_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
        {

        }
    }
}
